package com.tingbu.dubbo.service0.service.impl;

import com.tingbu.dubbo.service0.service.api.DubboService;
import com.tingbu.dubbo.service2.service.api.DubboService2;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.annotation.Service;


/**
 * @Author xiams
 * @Date: 2021/5/13 14:22
 */
@Service(interfaceClass = DubboService.class)
public class DubboServiceImpl implements DubboService {

    @Reference
    private DubboService2 dubboService2;

    public String invokeDubboService() {
        String result = dubboService2.testDubboService2();
        System.out.println("service0子服务开始被调用...");
        return "invoking dubbo service0`s child server | " + result;
    }

}
